<?php require_once ('config.php') ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Expenses FB app</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="jquery-1.6.4.min.js"/>
    <script type="text/javascript">
        $(document).ready(function() {

        });
    </script>
  </head>
  <body>
    <!-- FB Code -->
    <div id="fb-root"></div>
    <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
    <script type="text/javascript">
      FB.init({
        appId  : '<?php echo APP_ID ?>',
        status : true, // check login status
        cookie : true, // enable cookies to allow the server to access the session
        xfbml  : true, // parse XFBML
        channelURL : 'http://expenses-fb.saulsantiago.co.cc/channel.php', // channel.html file
        oauth  : true // enable OAuth 2.0
      });


      console.log(FB.getLoginStatus());
    </script>
    <!-- end of FB Code -->

  </body>
</html>
